package net.vkits.api;

import io.swagger.annotations.*;
import net.vkits.common.dto.BaseDTO;
import net.vkits.common.dto.DeviceDTO;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by ethan-liu on 2016/11/23.
 */
@Api(value = "device", description = "上传设备信息API")
@RequestMapping("/api/v2")
public interface DeviceApi {
    @ApiOperation(value = "update device", notes = "更新设备信息", response = BaseDTO.class, tags={ "device", })
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "更新设备信息成功", response = BaseDTO.class),
            @ApiResponse(code = 404, message = "更新设备信息失败", response = BaseDTO.class) })
    @RequestMapping(value = "/device",
            produces = { "application/json" },
            method = RequestMethod.PUT)
    ResponseEntity<BaseDTO> updateDevice(@ApiParam(value = "设备信息", required = true) @RequestBody DeviceDTO deviceDTO);
}
